<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生信息主界面</title>
</head>
<body>
    <h1 align="center">学生信息主界面</h1>
    <form method="post">
        <div align="center"><a href="/regiest_stu/">学生信息注册</a></div>
            <table align="center" border="1" width="500">
            <thead>
                <tr>
                    <th >学号:</th>
                    <th>学生姓名:</th>
                    <th>学生性别:</th>
                    <th>年龄:</th>
                    <th>所属院系:</th>
                    <th>专业名称:</th>
                    <th>联系方式:</th>
                    <th>家庭地址:</th>
                    <th>宿舍号:</th>
                    <th>
                        操&emsp;作：
                    </th>
                </tr>
                </thead>
                <tbody>
                    {% for i in queryset %}
                    <tr>
                        <td align="center">{{ i.s_id }}</td>
                        <td align="center">{{ i.s_name }}</td>
                        <td align="center">{{ i.s_sex }}</td>
                        <td align="center">{{ i.s_age }}</td>
                        <td align="center">{{ i.s_college }}</td>
                        <td align="center">{{ i.s_speciality }}</td>
                        <td align="center">{{ i.s_phone }}</td>
                        <td align="center">{{ i.s_adress }}</td>
                        <td align="center">{{ i.depart_id }}</td>
                        <td><a href="/delete_stu/?s_id={{ i.s_id }}">删除</a>
                        <a href="/edit_stu/?s_id={{ i.s_id }}">修改</a></td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </form>
</body>
</html>